home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: news.dcs.warwick.ac.uk!not-for-mail
- From: D.C.Molero@dcs.warwick.ac.uk (Daniel Castillo Molero)
- Subject: line intersection in C
- X-Nntp-Posting-Host: jelly
- Message-ID: <1996Feb25.230142.29689@dcs.warwick.ac.uk>
- Sender: news@dcs.warwick.ac.uk (Network News)
- Organization: Department of Computer Science, Warwick University, England
- Date: Sun, 25 Feb 1996 23:01:42 GMT
-
-
- Hello,
-
- I wonder if anybody can help me to find an algorithm in C to detect whether
- two line segments intersect properly (I don't know if this is the correct
- terminology, but by proper intersection I mean that the intersection is
- not in the extreme of any of them and that one does not lie on top of
- the other).
- I need to test intersection just for line segments whose slope is a multiple
- of 45 degrees, which I suppose may simplify the solution.
-
- I would greatly appreciate any sort of help.
-
- Daniel Castillo.
-
- danmol@dcs.warwick.ac.uk
-
- --
- * Daniel Castillo. D.C.Molero@dcs.warwick.ac.uk *
-
-
-